import BlankLayout from "@/layouts/BlankLayout";
import DevLayout from "@/layouts/DevLayout";
import KeepLayout from "@/layouts/KeepLayout";
import Dashboard from "@/pages/Dashboard";
const routes = (firstPath: string) => {
  return [
    {
      name: "驾驶舱",
      path: firstPath + "/dashboard",
      component: Dashboard,
    },
  ];
};

export default [
  {
    path: "/",
    component: BlankLayout,
    routes: [
      // 带layout的页面
      {
        path: "/layout",
        component: DevLayout,
        routes: routes("/layout"),
      },
      // 不带layout，微页面专属
      {
        path: "/",
        component: KeepLayout,
        routes: routes("/supgptapp"),
      },
    ],
  },
];
